import request from "../../request";

const baseUrl = (id) => {
  return `/admin/maker/activity` + (id ? `/${id}` : '')
}

// +---------------------
// + 创客活动
// +---------------------
export const AdminMakerActivityList = (params) => {
  return request.get(baseUrl(), params)
}
export const AdminMakerActivityInfo = (id, params) => {
  return request.get(baseUrl(id), params)
}
export const AdminMakerActivityPost = (data) => {
  return request.post(baseUrl(), data)
}
export const AdminMakerActivityPut = (id, data) => {
  return request.put(baseUrl(id), data)
}
export const AdminMakerActivityDelete = (id) => {
  return request.delete(baseUrl(id))
}
